<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
	<head>
		<link href="images/skin.css" rel="stylesheet" type="text/css" />
		<meta http-equiv="Content-Type" content="text/html;charset=utf-8" />
		<script type="text/javascript"src="js/jquery.min.js"></script>
		<base href="<%=basePath%>">
		<style type="text/css">
<!--
body {
	margin-left: 0px;
	margin-top: 0px;
	margin-right: 0px;
	margin-bottom: 0px;
	background-color: #EEF2FB;
}
.contentTable,.contentTable td,.contentTable th,  {   
    border:1px solid #cccccc;   
    border-collapse:collapse;  
} 
-->
</style>
<script type="text/javascript">
	function check(theform)
	{
		if (theform.reason.value==-1)	{
		    alert("请选择故障原因！");
		    theform.reason.focus();
		    return (false);
		  }
		  theform.submit();
		  return (true);   
	}
	function resetBtn(fm){
	　　 fm.reset();
	 　　return false;
	}
</script>
	</head>
	<body>
		<table width="100%" border="0" cellpadding="0" cellspacing="0" style="">
			<tr>
			    <td width="17" valign="top" background="images/mail_leftbg.gif"><img src="images/left-top-right.gif" width="17" height="29" /></td>
			    <td valign="top" background="images/content-bg.gif">
			    	<table width="100%" height="31" border="0" cellpadding="0" cellspacing="0" class="left_topbg" id="table2">
				      <tr>
				        <td height="31"><div class="titlebt">支撑需求处理</div></td>
				      </tr>
			    	</table>
			    </td>
			    <td width="16" valign="top" background="images/mail_rightbg.gif"><img src="images/nav-right-bg.gif" width="16" height="29" /></td>
		  </tr>
		  
		  <tr >
			<td valign="middle" background="images/mail_leftbg.gif">
				&nbsp;
			</td>
			<td valign="top" bgcolor="#F7F8F9" style="margin-top:10px">
				<table width="90%" border="0" cellpadding="0" cellspacing="0" class="line_table" align="center" style="margin-top:10px">
		          <tr>
		            <td width="2%" height="27" background="images/news-title-bg.gif"><img src="images/news-title-bg.gif" width="2" height="27"></td>
		            <td width="98%" background="images/news-title-bg.gif" class="left_bt2">需求处理</td>
		          </tr>
		          <tr>
		            <td valign="top"></td>
		            <td valign="top" align="center">
		            	<s:form method="post" action="Request!addResult" id="requestInputForm">
							<table width="100%" border="0"  cellpadding="0" cellspacing="0">
							  <tr>
							    <td colspan="6"><s:if test="hasActionMessages()"><div class="info"><s:actionmessage/></div></s:if></td>
							  </tr>
							  <tr>
							    <td colspan="6" height="25px" bgcolor="#E6E6FA" class="table_content"><strong>工单信息</strong></td>
							  </tr>
							  <tr>
							    <td width="14%" height="30px" class="table_content" align="right" class="table_content">	编号：</td>
							    <td width="18%" height="30px" class="table_content" align="left" class="table_content">
							    	
								    <b><s:property escape="false" value="%{request.id}"/></b>
								</td>
							    <td width="18%" height="30px" class="table_content" align="right" class="table_content">	工单状态：</td>
							    <td width="14%" height="30px" class="table_content" align="left" class="table_content">
									
								   <b> <s:property escape="false" value="%{request.status}"/></b>
								</td>
							    <td width="18%" height="30px" class="table_content" align="right" class="table_content">	受理人：</td>
							    <td width="18%" height="30px" class="table_content" align="left" class="table_content">
							    	
							   		<b><s:property escape="false" value="%{request.operator}"/></b>
							    </td>    
							  </tr>
							  <tr>
							    <td colspan="6" height="25px" bgcolor="#E6E6FA" class="table_content"><strong>用户信息</strong></td>
							  </tr>
							  <tr>
							    <td width="14%" height="30px" class="table_content" align="right" class="table_content">	地域：</td>
							    <td width="18%" height="30px" class="table_content" align="left" class="table_content">
							    	
								    <b><s:property escape="false" value="%{request.area}"/></b>
								</td>
							    <td width="18%" height="30px" class="table_content" align="right" class="table_content">	业务类型：</td>
							    <td width="14%" height="30px" class="table_content" align="left" class="table_content">
									
								    <b><s:property escape="false" value="%{request.serviceType}"/></b>
								</td>
							    <td width="18%" height="30px" class="table_content" align="right" class="table_content">	业务号码：</td>
							    <td width="18%" height="30px" class="table_content" align="left" class="table_content">
							    	
							   		<b><s:property escape="false" value="%{request.serviceNum}"/></b>
							    </td>    
							  </tr>
							  <tr>
							    <td colspan="6" height="25px" bgcolor="#E6E6FA" class="table_content"><strong>装维人员信息</strong></td>
							  </tr>
							  <tr>
							  <td width="14%" height="30px" class="table_content" align="right" class="table_content">	姓名：</td>
							    <td width="18%" height="30px" class="table_content" align="left" class="table_content">
							    	<b><s:property escape="false" value="%{request.masterName}"/></b>
								</td>
							    <td width="18%" height="30px" class="table_content" align="right" class="table_content">	号码：</td>
							    <td width="14%" height="30px" class="table_content" align="left" class="table_content">
									<b><s:property escape="false" value="%{request.masterNum}"/></b>
								</td>
							    <td width="18%" height="30px" class="table_content" align="right" class="table_content">催修次数：</td>
							    <td width="18%" height="30px" class="table_content" align="left" class="table_content">
							    	<b><font color="red"><s:property escape="false" value="%{request.repeatCall}"/>次</font></b>
							    </td> 
							  </tr>
							  <tr>
							    <td colspan="6" height="25px" bgcolor="#E6E6FA" class="table_content"><strong>支撑需求信息</strong></td>
							  </tr>
							  <tr>
							    <td width="14%" height="30px" class="table_content" align="right" class="table_content">	支撑类别：</td>
							    <td width="18%" height="30px" class="table_content" align="left" class="table_content">
							    	
								    <b><s:property escape="false" value="%{request.supportType}"/></b>
							    </td>
							    <td width="18%" height="30px" class="table_content" align="right" class="table_content">故障现象：</td>
							    <td width="50%" height="30px" class="table_content" align="left" class="table_content" colspan="3">
							    	
									   <b>【<s:property escape="false" value="%{request.productType}"/>】<s:property escape="false" value="%{request.symptom}"/></b>
								</td>
							   
							  </tr>
							  <tr>
							    <td colspan="6" height="25px" bgcolor="#E6E6FA" class="table_content"><strong>备注信息</strong></td>
							  </tr>
							  
							  <tr>
							    <td class="table_content" height="40px" class="table_content" align="right" >备注：</td>
							    <td colspan="5" class="table_content" align="left">
							    	<b><s:property escape="false" value="%{request.note}"/></b>&nbsp;
								</td>
							  </tr>
							  <tr>
							    <td colspan="6" height="25px" bgcolor="#E6E6FA" class="table_content"><strong>处理信息</strong></td>
							  </tr>
							  <tr>
							    <td class="table_content" height="30px" class="table_content" align="right" >故障原因：</td>
							    <td colspan="5" class="table_content">
							    	<s:select 
									   name="request.reason"
								       id="reason"
								       headerKey="-1" headerValue="请选择"
								       listKey="name"
								       listValue="name"
								       list="allReasons"
								       theme="simple"
								       required="true" 
								       cssStyle="width:40%;margin-left:5px"
								       value="%{request.reason}"
								       />
							    </td>
							  </tr>
							  <tr>
							    <td class="table_content" height="60px" class="table_content" align="right" >处理结果：</td>
							    <td colspan="5" class="table_content" align="left">
							    	<s:textarea
									name="request.result"
									id="note"
									rows="5"
									cssStyle="width:88%;margin-left:5px"									
									>
										<s:param name="value">
	            							<s:property value="request.result" escape="false"/>
	        							</s:param>
        							</s:textarea>
								</td>
							  </tr>
							  <tr>
					            <td height="5px" colspan="6">&nbsp;</td>
					          </tr>
							  <tr>
							  	<td height="20px" colspan="3" class="table_content" align="right">&nbsp;</td>
							  	<td height="20px" class="table_content" align="left"><s:submit onclick="javascript:check(requestInputForm);return false;" value="保存"/></td>				  	
							  	<td height="20px" class="table_content" align="left"><s:reset onclick = "javascript:resetBtn(requestInputForm);return false; " value="重置"/></td>
							  	<td height="20px" class="table_content" align="right">&nbsp;</td>
							  </tr>
							</table>
							<s:hidden name="request.id" value="%{request.id}"/>
							</s:form>
						</td>
		          </tr>
		          
		          <tr>
		            <td height="5" colspan="2">&nbsp;</td>
		          </tr>
		         </table>
			</td>
			<td background="images/mail_rightbg.gif">
				&nbsp;
			</td>
			</tr>
			<tr>
			    <td valign="bottom" background="images/mail_leftbg.gif"><img src="images/buttom_left2.gif" width="17" height="17" /></td>
			    <td background="images/buttom_bgs.gif"><img src="images/buttom_bgs.gif" width="17" height="17"></td>
			    <td valign="bottom" background="images/mail_rightbg.gif"><img src="images/buttom_right2.gif" width="16" height="17" /></td>
		  	</tr>
		</table>
	</body>

</html>
